package cn.hnh.controller;

import cn.hnh.annotation.WebSiteViewAnno;
import cn.hnh.service.SlideBarService;
import cn.hnh.vo.Result;
import cn.hnh.vo.SlideBarVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Author HuangNianHong
 * @Time 2021/1/5
 */
@RestController
@Api(tags = "侧边栏接口规范文档")
public class SlideBarController {
    @Autowired
    private SlideBarService slideBarService;

    @ApiOperation(value = "查询侧边栏信息")
    @WebSiteViewAnno
    @RequestMapping("/slidebar")
    public Result<SlideBarVo> getSlideBar(){
        return slideBarService.getSildeBarVo();
    }
}
